package com.nebula.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.nebula.common.ServerResponse;
import com.nebula.pojo.Folders;
import com.nebula.pojo.User;

import net.sf.json.JSONArray;

public interface IFolderService {
	ServerResponse saveOrUpdateFolder(Folders folders);
	
	int getAllFilesIdByUsername(String username);
	
	Folders getFolderNameByFolderId(int folderId);
	
	ServerResponse<List<Integer>> selectFoldersAndChildrenById(Integer folderId,User user);
	
	ServerResponse<String> plDel(String groupId,User user);
	
	JSONArray getChildrenParallelFolder(Integer folderId,User user);
	
	ServerResponse<String> copyTo(Integer folderid,String valArr,User user);
	
	ServerResponse<String> moveTo(Integer folderid,String valArr,User user);
	
	ServerResponse<String> saveTo(Integer folderid,String valArr,User user);
	
	int getFolderCount(Integer folderid);
	
	ServerResponse getParentId(int folderid);
}
